package com.ourfox.a4.commons.exception;

/**
 * 
 * @Description: 系统默认异常类
 * @author xiujin.luo@gmail.com
 * @date 2013-4-11 上午2:07:33 
 * @version V1.0.0
 */
public class PortalException extends Exception{

	private static final long serialVersionUID = 6339227700657675189L;

	/**
	 * 异常码
	 */
	private int exceptionCode = 20000;

	
	public PortalException() {
		super();
	}


	public PortalException(int exceptionCode) {
		super();
		this.exceptionCode = exceptionCode;
	}
	
	public PortalException(String message, Throwable cause) {
		super(message, cause);
		// TODO Auto-generated constructor stub
	}


	public PortalException(int exceptionCode, String message) {
		super(message);
		this.exceptionCode = exceptionCode;
	}


	public PortalException(Throwable cause) {
		super(cause);
		// TODO Auto-generated constructor stub
	}


	public int getExceptionCode() {
		return exceptionCode;
	}


	public void setExceptionCode(int exceptionCode) {
		this.exceptionCode = exceptionCode;
	}


	@Override
	public String toString() {
		// TODO Auto-generated method stub
		
		return super.toString();
	}
	
	
	
}
